import request from '@/utils/request'

// 优惠券列表
export function getCouponsLists(query) {
    return request({
        url: '/joining/busin.Coupon/getLists',
        method: 'post',
        params: query
    })
}

// PC_优惠券_全部可赠送优惠券列表
export function getGivenCouponsLists(query) {
    return request({
        url: '/joining/busin.Coupon/getGiveCouponListsAll',
        method: 'post',
        params: query
    })
}

// 设置优惠券数量
export function setCouponsNumber(query) {
    return request({
        url: '/joining/busin.Coupon/setNumber',
        method: 'post',
        params: query
    })
}

//优惠券详情
export function getCouponsInfo(query) {
    return request({
        url: '/joining/busin.Coupon/getInfo',
        method: 'post',
        params: query
    })
}

// 添加、编辑优惠券
export function setCouponsInfo(query) {
    return request({
        url: '/joining/busin.Coupon/setInfo',
        method: 'post',
        params: query
    })
}

// 禁用、启用优惠券
export function setcouponsStatus(query) {
    return request({
        url: '/joining/busin.Coupon/setStatus',
        method: 'post',
        params: query
    })
}

// 删除优惠券
export function delcouponsInfo(query) {
    return request({
        url: '/joining/busin.Coupon/delInfo',
        method: 'post',
        params: query
    })
}

// 赠送优惠券
export function setGiveCoupons(query) {
    return request({
        url: '/joining/busin.Coupon/setGive',
        method: 'post',
        params: query
    })
}